package com.zkw.gro.cloure.demo.scope

/**
 * Created by Administrator on 2016/4/9 0009.
 */
class ClosureScopeMain {
    int field = 1
    int foo(){
        return 2
    }
    Closure birth(param){
        def local = 3
        def closure={ caller ->
            [this,field,foo(),local,param,caller,this.owner]
        }
        return closure
    }
}
